package com.nbsaas.boot.merchant.rest.convert;

import com.nbsaas.boot.merchant.data.entity.Merchant;
import com.nbsaas.boot.merchant.api.domain.simple.MerchantSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 商家-列表对象转换器
*/

public class MerchantSimpleConvert implements Converter<MerchantSimple, Merchant> {




@Override
public MerchantSimple convert(Merchant source) {
    MerchantSimple result = new MerchantSimple();

                result.setBusinessLicense(source.getBusinessLicense());
                result.setCommissionRate(source.getCommissionRate());
                result.setCode(source.getCode());
                result.setCity(source.getCity());
                result.setLatitude(source.getLatitude());
                result.setDescription(source.getDescription());
                result.setContactPerson(source.getContactPerson());
                result.setBankName(source.getBankName());
                result.setDepositPaid(source.getDepositPaid());
                result.setProvince(source.getProvince());
                result.setLogo(source.getLogo());
                result.setSettlementCycle(source.getSettlementCycle());
                result.setId(source.getId());
                result.setMerchantType(source.getMerchantType());
                result.setLongitude(source.getLongitude());
                result.setLastDate(source.getLastDate());
                result.setDepositAmount(source.getDepositAmount());
                result.setBankAccount(source.getBankAccount());
                result.setBankAccountName(source.getBankAccountName());
                result.setAddress(source.getAddress());
                result.setContactEmail(source.getContactEmail());
                result.setMerchantLevel(source.getMerchantLevel());
                result.setBusinessHours(source.getBusinessHours());
                result.setBanner(source.getBanner());
                result.setBusinessScope(source.getBusinessScope());
                result.setAuditRemark(source.getAuditRemark());
                result.setIdCardFront(source.getIdCardFront());
                result.setAddDate(source.getAddDate());
                result.setAuditTime(source.getAuditTime());
                result.setDistrict(source.getDistrict());
                result.setName(source.getName());
                result.setAuditUser(source.getAuditUser());
                result.setAuditStatus(source.getAuditStatus());
                result.setContactPhone(source.getContactPhone());
                result.setIdCardBack(source.getIdCardBack());
                result.setStatus(source.getStatus());


    return result;
}

}